import java.util.Scanner;

public class Demo2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        int sum = a;
        if(a > b) {
            sum = b;
        }

        while(sum > 0) {
            if(a % sum == 0 && b % sum == 0) {
                break;
            }
            sum--;
        }

        System.out.println(a*b/sum);
    }
}
